package pingu.interface_graphique;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;

public class PinguGame extends StateBasedGame {
	 
    public static final int MAINMENUSTATE          = 0;
    public static final int GAMEPLAYSTATE          = 1;
    public static final int MULTIHOSTSTATE         = 2;
    public static final int MULTIJOINSTATE         = 3;
 
    public PinguGame()
    {
        super("Le Jeu des Pingouins");
 
        this.addState(new MainMenuState(MAINMENUSTATE));
        this.addState(new GameplayState(GAMEPLAYSTATE));
        this.addState(new MultiHostState(MULTIHOSTSTATE));
        this.addState(new MultiJoinState(MULTIJOINSTATE));
        this.enterState(MAINMENUSTATE);
    }
 
    public static void main(String[] args) throws SlickException
    {
         AppGameContainer app = new AppGameContainer(new PinguGame());
 
         app.setDisplayMode(1200, 800, false);
         app.start();
    }
 
    @Override
    public void initStatesList(GameContainer gameContainer) throws SlickException {
 
        this.getState(MAINMENUSTATE).init(gameContainer, this);
        this.getState(GAMEPLAYSTATE).init(gameContainer, this);
        this.getState(MULTIHOSTSTATE).init(gameContainer, this);
        this.getState(MULTIJOINSTATE).init(gameContainer, this);
 
 
    }
 
}